from django.shortcuts import render

# Create your views here.

from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework.generics import UpdateAPIView

from apps.PersonInfo.serializers import PersonInfoSerializers
from apps.PersonInfo.models import PersonInfoModel

# 用户信息视图

class PersonInfoView(APIView):
    def post(self,request):
        print(request.data)

        ser = PersonInfoSerializers(data=request.data)
        # if not ser.is_valid():
        #     return Response({"status":False})
        print(ser.is_valid())
        # if ser.is_valid():
        #     ser.save()
        #     return Response({"status":True})
        return Response({"status": False})